/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package shoppingClient;

/**
 *
 * @author MinhDuc
 */
public class Product {
    private String name;
    private double price;
    private int amount;
    private int avaiableAmount;
    public Product(String name,double price,int avaiableAmount){
        this.name = name;
        this.amount = 0;
        this.price = price;
        this.avaiableAmount = avaiableAmount;
    }

    protected String getName() {
        return this.name;
    }
    
    protected double getPrice() {
        return this.price;
    }
    protected int getAmount() {
        return this.amount;
    }
    protected int getAvaiableAmount() {
        return this.avaiableAmount;
    }

    protected void inc() {
        ++amount;
    }

    protected void dec() {
        --amount;
    }
    
    protected void reset(){
        this.amount = 0;
    }

   
    
}
